﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CoffeeMobile.Models.ViewModels
{
    public class TableModel
    {
        public Guid ID { get; set; }
        public string Name { get; set; }
        public virtual List<OrderHistoryModel> OrderHistoryModels { get; set; }
    }
    
    public class OrderHistoryModel
    {
        public string FoodName { get; set; }
        public string FoodImg { get; set; }
        public int FoodQuality { get; set; }
        public int? FoodUnitPrice { get; set; }
        private int _price;
        public int Price { set { _price = value; } get { return (int)FoodUnitPrice * FoodQuality; } }
        public Guid FoodID { get; set; }
    }
}